package com.yidu.news.controller;

import com.yidu.news.pojo.ManagePayin;
import com.yidu.news.service.ManagerPayinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author ：liandyao
 * @description：TODO
 * @date ：2020/4/29 13:12
 */
@Controller
@RequestMapping("/payin")
public class ManagerPayinController {

    @Autowired
    ManagerPayinService managerPayinService;


    @ResponseBody
    @RequestMapping("/selectAll")
    public Map<String,Object> selectAll(){
        List<ManagePayin> list = managerPayinService.findAll();
        Map<String,Object> map = new HashMap<String, Object>();

        map.put("data",list);
        map.put("count",list.size());
        map.put("msg","");
        map.put("code","");


        return map ;
    }

}
